-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix(solid-query): enable experimental_prefetchInRender by default for… #9822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(solid-query): enable experimental_prefetchInRender by default for… #9822
Conversation
🦋 Changeset detectedLatest commit: b84bbeb The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughEnables SSR prefetch during render in Solid Query by setting Changes
Sequence Diagram(s)sequenceDiagram
participant Server
participant useBaseQuery
participant QueryClient
participant createResource
rect rgb(240,248,255)
Server->>useBaseQuery: render() (server path)
useBaseQuery->>QueryClient: set defaultOptions.experimental_prefetchInRender = true
useBaseQuery->>QueryClient: prefetch query during render (sync-ish)
QueryClient-->>useBaseQuery: returns promise/observable
useBaseQuery->>createResource: provide data/promise to createResource during render
createResource-->>Server: suspends/resolves for SSR output
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit b84bbeb
☁️ Nx Cloud last updated this comment at |
|
Sizes for commit b84bbeb:
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #9822 +/- ##
===========================================
+ Coverage 45.74% 76.39% +30.65%
===========================================
Files 200 19 -181
Lines 8404 394 -8010
Branches 1919 81 -1838
===========================================
- Hits 3844 301 -3543
+ Misses 4112 76 -4036
+ Partials 448 17 -431
🚀 New features to boost your workflow:
|
Enable experimental_prefetchInRender by default for @tanstack/solid-query.
closes #9713
Solid query on the server hangs forever, because it always needs experimental_prefetchInRender:true on the server, but that's off by default. Since it always have to be on on the server, this PR detects isServer and set it true. It's because createResource uses promises.
Summary by CodeRabbit